﻿/// <reference path="/Scripts/Base/jquery-1.7.1.js" />
/// <reference path="/Scripts/Base/jquery-ui-1.8.20.js" />

$(function () {
    

    $(".scan-image").click(function () {
        //kép eredeti méretben mutatása
        var t = new Image();
        t.src = $(this).find("img").attr("src");
        var originalWidth = t.width;
        var originalHeight = t.height;
        $("#pic-full").attr("src", t.src);
        $("#log-entry-pics-fullsize").dialog({
            modal: true,
            width: originalWidth+20,
            height: originalHeight+20,
            draggable: false,
            show: {
                effect: "fold",
                duration: 500
            },
            open: function () {
                
            }
        });
    });
});